/**
* ...
* @author Default
* @version 0.1
*/

package bdz.physics.objects {
	import bdz.physics.objects.AbstractElement;
	import bdz.physics.utils.Vector;

	public class CircleElement extends AbstractElement {
		private var _radius:Number;
		function CircleElement(sx:Number = 0, sy:Number = 0, rad:Number = 10) {
			super(getRestriction());
			x = sx;
			y = sy;
			_radius = rad;
			init();
		}
		private function init():void {
			
			graphics.moveTo(_radius * .5, _radius * .5);
			graphics.lineStyle(1, 0x000000, 1);
			graphics.beginFill(0x000000, 1);
			graphics.drawCircle(0, 0, _radius);
		}
		public function get radius():Number {
			return _radius
		}
		
		
		
	}
	
}